package com.weafung.web.controller;

import com.weafung.web.domain.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class UserController {
    @GetMapping("/register")
    public User register() {
        System.out.println("register");
        return new User();
    }

    @GetMapping("/register2")
    public void register2() {
        System.out.println("register2");
    }
}
